package com.api.shopapi.service.impl;

import com.api.shopapi.entity.MedicationSchedulingNoon;
import com.api.shopapi.entity.dto.MedicationSchedulingNoonDTO;
import com.api.shopapi.mapper.MedicationSchedulingNoonMapper;
import com.api.shopapi.service.MedicationSchedulingNoonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("MedicationSchedulingNoonServiceImplOne")
public class MedicationSchedulingNoonServiceImpl implements MedicationSchedulingNoonService {
    @Autowired
    private MedicationSchedulingNoonMapper medicationSchedulingNoonMapper;


    @Override
    public int insert(MedicationSchedulingNoon medicationSchedulingNoon) {
        return medicationSchedulingNoonMapper.insert(medicationSchedulingNoon);
    }

    @Override
    public int updateByMedicationSchedulingNoonCode(MedicationSchedulingNoon medicationSchedulingNoon) {
        return medicationSchedulingNoonMapper.updateByMedicationSchedulingNoonCode(medicationSchedulingNoon);
    }

    @Override
    public int deleteByMedicationSchedulingNoonCode(String medicationSchedulingNoonCode) {
        return medicationSchedulingNoonMapper.deleteByMedicationSchedulingNoonCode(medicationSchedulingNoonCode);
    }

    @Override
    public MedicationSchedulingNoon getByMedicationSchedulingNoonCode(String medicationSchedulingNoonCode) {
        return medicationSchedulingNoonMapper.getByMedicationSchedulingNoonCode(medicationSchedulingNoonCode);
    }

    @Override
    public MedicationSchedulingNoonDTO getByMedicationSchedulingCode(String medicationSchedulingCode) {
        return medicationSchedulingNoonMapper.getByMedicationSchedulingCode(medicationSchedulingCode);
    }
}
